<?php

require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC."/oxwindow.class.php");
if(empty($dopost)) $dopost = '';
$ENV_GOBACK_URL = isset($_COOKIE['ENV_GOBACK_URL']) ? 'member_yijian.php' : '';
if ($dopost=="do")
{
	$id = preg_replace("#[^0-9]#", "", $id);
	$dsql->ExecuteNoneQuery("UPDATE `#@__yijian` SET sta='1' WHERE id='$id'");
    ShowMsg("审核操作已成功",$ENV_GOBACK_URL);
    exit();
}else if ($dopost=="del")
{
	$id = preg_replace("#[^0-9]#", "", $id);
	$dsql->ExecuteNoneQuery("DELETE FROM `#@__yijian` WHERE id='$id'");
    ShowMsg("删除操作已成功",$ENV_GOBACK_URL);
    exit();
}else{
	ShowMsg("未知错误",$ENV_GOBACK_URL);
}